var newDir = ImTranslator_PrefsOnLoad.getCharPref("dirParentFrom")+"/"+ImTranslator_PrefsOnLoad.getCharPref("dirParentTo");
if (!ImTranslator_PrefsOnLoad.getCharPref("locParent")) var newLoc = ImTranslator_PrefsOnLoad.setCharPref("locParent","en");
else var newLoc = ImTranslator_PrefsOnLoad.getCharPref("locParent");
if (!ImTranslator_PrefsOnLoad.getBoolPref("AutoDetect")) var adet = 0;
else var adet = 1;
if (!ImTranslator_PrefsOnLoad.getBoolPref("AutoBack")) var ab = 0;
else var ab = 1;
if (!ImTranslator_PrefsOnLoad.getBoolPref("AutoTranslit")) var at = 0;
else var at = 1;
if (!ImTranslator_PrefsOnLoad.getBoolPref("AutoSpell")) var a_s = 0;
else var a_s = 1;
if (!ImTranslator_PrefsOnLoad.getBoolPref("AutoDecode")) var ad = 0;
else var ad = 1;
if (!ImTranslator_PrefsOnLoad.getBoolPref("GoogleOnly")) var gon = 0;
else var gon = 1;
if (!ImTranslator_PrefsOnLoad.getBoolPref("AutoDictionary")) var adi = 0;
else var adi = 1;
var translatorURL = "http://translation.paralink.com/translator.asp?op=y&adet="+adet+"&a_s="+a_s+"&ad="+ad+"&ab="+ab+"&at="+at+"&gon="+gon+"&adi="+adi+"&dir="+newDir+"&loc="+newLoc+"&text="+escape(temptext);
temptext="";
var features = "unadorned=yes,dependent=yes,width=480,height=470,scroll=no,help=no,status=no,directories=no,menubar=no,resizable=no";
//PLwindow.close();
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
com_smartlinkcorp_imtranslator.ChortCutToOptions = function ()
{
var translatorURL = "chrome://imtranslator/content/options.xul";
temptext="";
//var features = "unadorned=yes,dependent=yes,width=480,height=470,scroll=no,help=no,status=no,directories=no,menubar=no,resizable=no";
//var features = "unadorned:yes;dependent:yes;dialogWidth:480px;dialogHeight:470px,scroll:no,help:no,status:no,directories:no,menubar:no,resizable:no";
var features = "dialogWidth:480px;dialogHeight:470px";
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]